package com.ynny.chapter05_02.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//序列化 (Serialization)是将对象的状态信息转换为可以存储或传输的形式的过程。
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

}
